package com.demo.bus_management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
@TableName("bus_line")
public class BusLine {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;          // 线路ID
    private String line_name;  // 线路名称
    private String line_number; // 线路号
    private String description; // 描述
    @Override  //重写方法
    public String toString() {
        return "busline{"+
        "id=" + id + '/' +
                ",line_name=" + line_name + '/' +
                ",line_number=" +line_number + '/' +
                ",description=" + description + '/' +
                "}";
    }
}